package com.hk.aefz.web;


import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * <p>
 * 导航栏 前端控制器
 * </p>
 *
 * @author 阿尔法哲
 * @since 2020-07-21
 */
@RestController
@RequestMapping("/navigation")
public class NavigationController {



    @ApiOperation("个人博客首页")
    @GetMapping(path = "/personblog")
    public ModelAndView personblog() {
        ModelAndView mv = new ModelAndView("/blogafter/personageBlog");
        return mv;
    }

    @ApiOperation("个人中心")
    @GetMapping(path = "/personinfo")
    public ModelAndView personinfo() {
        ModelAndView mv = new ModelAndView("/user/personinfo");
        return mv;
    }

    @ApiOperation("未认证返回登录页面")
    @GetMapping(path = "/login")
    public ModelAndView login() {
        ModelAndView mv = new ModelAndView("/user/login");
        return mv;
    }

    @GetMapping(path = "/register")
    public ModelAndView register() {
        ModelAndView mv = new ModelAndView("/user/register");
        return mv;
    }

//    管理个人博客


    @ApiOperation("跳转到点赞管理")
    @GetMapping(path = "/praise-admin")
    public ModelAndView praiseAdmin() {
        ModelAndView mv = new ModelAndView("/blogafter/adminPraise");
        return mv;
    }



}

